import request from '@/utils/request';

// 设备位置
export const getDevice = () => {
  return request({
    url: '/device/homeDeviceAddress',
    method: 'get',
  });
};

// 设备型号统计
export function getDeviceType(params?: any) {
  return request({
    url: '/deviceMode/modelStatistics',
    method: 'get',
    params,
  });
}

// 设备型号统计
export function getDeviceModel(params?: any) {
  return request({
    url: '/deviceMode/deviceModelStatistics',
    method: 'get',
    params,
  });
}

// 项目统计
export function getProject(params?: any) {
  return request({
    url: '/project/projectStatistics',
    method: 'get',
    params,
  });
}

// 设备校验
export function getIsDevice(params?: any) {
  return request({
    url: '/device/deviceCheckedStatistics',
    method: 'get',
    params,
  });
}

// 设备总览统计
export function getAllDevice(params?: any) {
  return request({
    url: '/device/deviceTotalStatistics',
    method: 'get',
    params,
  });
}
